<template>
    <div class="w750 white-bg">
        <div v-html="agreementText" style="padding: 0 10px;"></div>
    </div>
</template>

<script>
import { NavBar } from 'vant';
import { registerAgreement } from 'api/register';
export default {
    name: 'HelloWorld',
    components: {
        NavBar
    },
    data() {
        return {
            agreementText: '',
            type: this.$route.query.type
        };
    },
    mounted() {
        let that = this;
        let type = this.$route.query.type
        

        registerAgreement(type).then(res => {
            if (res.status == 1) {
                this.agreementText = res.result;
            }
        });
    },
    methods: {
        //返回
        goback() {
            this.$router.isBack = true;
            this.$router.back();
        }
    },
    computed: {}
};
</script>

<style scoped></style>
